package com.song.helper.model;

import java.io.Serializable;

import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author Nelly
 * @since 2018-03-10
 */
@TableName("non_default")
public class NonDefault extends Model<NonDefault> {

    private static final long serialVersionUID = 1L;

    /**
     * id 主键自增
     */
	@TableId(value="id", type= IdType.AUTO)
	private Integer id;
    /**
     * 正常上班时间
     */
	@TableField("work_start")
	private Date workStart;
    /**
     * 正常下班时间
     */
	@TableField("work_end")
	private Date workEnd;
    /**
     * 加班开始时间
     */
	@TableField("overtime_start")
	private Date overtimeStart;
    /**
     * 加班结束时间
     */
	@TableField("overtime_end")
	private Date overtimeEnd;
    /**
     * 用户id
     */
	@TableField("user_id")
	private Integer userId;
    /**
     * 字典项      1:加班  2:请假  3:迟到  4:早退   5:正常
     */
	private Integer type;
    /**
     * 创建时间
     */
	@TableField("create_time")
	private Date createTime;
    /**
     * 修改时间
     */
	@TableField("update_time")
	private Date updateTime;
    /**
     * 备注
     */
	private String remarks;


	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Date getWorkStart() {
		return workStart;
	}

	public void setWorkStart(Date workStart) {
		this.workStart = workStart;
	}

	public Date getWorkEnd() {
		return workEnd;
	}

	public void setWorkEnd(Date workEnd) {
		this.workEnd = workEnd;
	}

	public Date getOvertimeStart() {
		return overtimeStart;
	}

	public void setOvertimeStart(Date overtimeStart) {
		this.overtimeStart = overtimeStart;
	}

	public Date getOvertimeEnd() {
		return overtimeEnd;
	}

	public void setOvertimeEnd(Date overtimeEnd) {
		this.overtimeEnd = overtimeEnd;
	}

	public Integer getUserId() {
		return userId;
	}

	public void setUserId(Integer userId) {
		this.userId = userId;
	}

	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	public String getRemarks() {
		return remarks;
	}

	public void setRemarks(String remarks) {
		this.remarks = remarks;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "NonDefault{" +
			"id=" + id +
			", workStart=" + workStart +
			", workEnd=" + workEnd +
			", overtimeStart=" + overtimeStart +
			", overtimeEnd=" + overtimeEnd +
			", userId=" + userId +
			", type=" + type +
			", createTime=" + createTime +
			", updateTime=" + updateTime +
			", remarks=" + remarks +
			"}";
	}
}
